import 'package:flutter/material.dart';
import 'package:my_flutter/pages/user_detail_page.dart';
import 'package:my_flutter/plugins/mix_plugin.dart';

class UserPage extends StatefulWidget {
  UserPage({Key? key}) : super(key: key);

  @override
  State<UserPage> createState() => _UserPageState();
}

class _UserPageState extends State<UserPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text("user")),
      body: Container(
          alignment: Alignment.center,
          color: Colors.amber,
          child: GestureDetector(
            onTap: (() {
              RouteSettings setting = RouteSettings();
              Widget Function(BuildContext ctx) builder = (_) => UserDetailPage();
              Navigator.of(context).push(MaterialPageRoute(builder: builder, settings: setting));
            }),
            child: Container(
              width: 100,
              height: 100,
              color: Colors.white,
            ),
          )),
    );
  }
}
